package com.example.pojo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 本文来演示
 *
 * @author 赵建云
 * @create 2023/10/20
 */
@Document(collection = "response")
@Data
public class Response implements Serializable {
    @Id
    private String id;
    private Integer jsId;
    private String jsName;
    private String commentId;
    private String avatar;
    private String response;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
    private Integer likeNum;
    private String optionJsName;

}
